package com.bys.index;

import com.bys.response.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {
    @GetMapping("/")
    public String index(){
        return "欢迎访问花海后台服务！";
    }
    @PostMapping("/logout")
    public R<Boolean> logout(){
        return R.success(Boolean.TRUE);
    }
}
